<!--{template admin/tpl/header}-->

<div class="mainarea">
	<div class="maininner">
	<!--{if $allowmanage}-->
	<div class="tabs_header">
		<ul class="tabs">
			<li $actives[all]><a href="admincp.php?ac=contribute"><span>浏览全部稿件</span></a></li>
			<li $actives[checks]><a href="###"><span>稿件审核</span></a></li>
		</ul>
	</div>
	<!--{/if}-->

<!--{if $_GET['op']!='checks'}-->
	
	<form method="get" action="admincp.php">
	<div class="block style4">
		<table cellspacing="3" cellpadding="3">

		<!--{if $allowmanage}-->
		<tr>
			<th>作者UID</th><td><input type="text" name="uid" value="$_GET[uid]"></td>
		</tr>
		<!--{/if}-->

		<tr><th>发布时间</th><td colspan="3">
			<input type="text" name="ontime1" value="$_GET[ontime1]" size="10"> ~
			<input type="text" name="ontime2" value="$_GET[ontime2]" size="10"> (YYYY-MM-DD)
		</td></tr>
		
		<tr><th>结果排序</th>
		<td colspan="3">
		<select name="orderby">
		<option value="">默认排序</option>
		<option value="ontime"$orderby[ontime]>发布时间</option>
		</select>
		<select name="ordersc">
		<option value="desc"$ordersc[desc]>递减</option>
		<option value="asc"$ordersc[asc]>递增</option>
		</select>
		<select name="perpage">
		<option value="20"$perpages[20]>每页显示20个</option>
		<option value="50"$perpages[50]>每页显示50个</option>
		<option value="100"$perpages[100]>每页显示100个</option>
		</select>
		<input type="hidden" name="ac" value="contribute">
		<input type="submit" name="searchsubmit" value="搜索" class="submit">
		</td>
		</tr>
		</table>
	</div>
	</form>
<!--{/if}-->
<!--{if $_GET['op']=='checks'}-->
	<form method="post" action="admincp.php?ac=contribute">
	<div class="bdrcontent">
		<div class="cont">
			<div class="cont_id"><span class="cont_t">发布人id：</span>$cont_look['uid']</div>
			<div class="cont_name"><span class="cont_t">稿件名称：</span>$cont_look['title']</div>
			<div class="cont_type"><span class="cont_t">活动名称：</span>$cont_look['type']</div>
			<div class="cont_content"><span class="cont_t">稿件内容：</span><div class="cont_cont">$cont_look['content']</div></div>
			<div class="cont_type"><span class="cont_t" style="float:left;">上传附件：</span><a href="space.php?uid=$cont_look['uid']&do=udisk&picid=$cont_look['picid']&goto=downfiles" style="margin-left:10px;float:left;" target="_blank"><img src="/template/default/image/file/<!--{$cont_look['fileext']}-->.gif" alt="$cont_look['filename']" border="0" /></a><a href="space.php?uid=$cont_look['uid']&do=udisk&picid=$cont_look['picid']&goto=downfiles" style="margin-left:10px;float:left;" target="_blank"><b>$cont_look['filename']</b></a></div>
			<div class="cont_check">
				<input type="hidden" name="cid" value="$cid" />
				<select name="checks">
					<option value="0">审核中</option>
					<option value="1" <!--{if $cont_look['checks']>0}-->selected="selected"<!--{/if}-->>审核已通过</option>
					<option value="-1" <!--{if $cont_look['checks']<0}-->selected="selected"<!--{/if}-->>审核未通过</option>
				</select>
			</div>
			<div class="cont_submit"><input type="submit" name="checkssubmit" value="提交" /><a href="admincp.php?ac=contribute">返回</a></div>
		</div>
	</div>
	</form>
<!--{else}-->

	<!--{if $list}-->
	<div class="bdrcontent">
		<table class="cont_c">
			<tr class="cont_c_t">
				<td width="10%">稿件id</td>
				<td width="10%">发布者id</td>
				<td width="20%">活动名称</td>
				<td width="20%">稿件名称</td>
				<td width="10%">发布时间</td>
				<td width="10%">稿件状态</td>
				<td width="10%">活动状态</td>
				<td width="10%">操作</td>
			</tr>
			<!--{loop $list $value}-->
			<tr class="cont_c_c">
				<td>$value['cid']</td>
				<td>$value['uid']</td>
				<td>$value['type']</td>
				<td>$value['title']</td>
				<td><!--{date('m-d H:i',$value['ontime'],1)}--></td>
				<td>
					<!--{if $value['checks'] > 0}-->
						审核已通过
					<!--{elseif $value['checks'] < 0}-->
						审核未通过
					<!--{else}-->
						审核中
					<!--{/if}-->
				</td>
				<td>
					<!--{if $value['isopen'] > 0}-->
						征选已结束
					<!--{else}-->
						稿件征选中
					<!--{/if}-->
				</td>
				<td><a href="admincp.php?ac=contribute&op=checks&cid=$value['cid']">审核</a></td>
			</tr>
			<!--{/loop}-->
		</table>
		<div class="page" style="clear:both;margin:10px 5px;">$multi</div>
	</div>
	<!--{else}-->
	<div class="bdrcontent">
		<p>指定条件下还没有数据</p>
	</div>
	<!--{/if}-->

<!--{/if}-->

	</div>
</div>
<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->